function classDecorator<T extends { new (...args: any[]): {} }>(constructor: T) {
    return class extends constructor {
        newProperty = "New property";
        // 修改属性名称，避免冲突
        newHello = "New property";
    };
}

@classDecorator
class MyClass {
    property = "Original property";
    hello: string;

    constructor() {
        this.hello = "Hello TypeScript";
    }
}

const myClass = new MyClass();
console.log(myClass.hello); // 输出：Hello TypeScript
console.log(myClass.newProperty); // 输出：New property
console.log(myClass.newHello); // 输出：New property